import server from '@dt/server/dt'

const api = {
  sysRoleList: server.api().post('/sa-admin/api/v1/sysRole/selectAll'),
  sysRoleInsert: server.api().post('/sa-admin/api/v1/sysRole/insert'),
  sysRoleUpdate: server.api().post('/sa-admin/api/v1/sysRole/update')
}

function sysRoleList(params) {
  return api.sysRoleList.fetch(params)
}

function sysRoleInsert(info) {
  return api.sysRoleInsert.fetch(info)
}

function sysRoleUpdate(info) {
  return api.sysRoleUpdate.fetch(info)
}

export default {
  sysRoleList,
  sysRoleInsert,
  sysRoleUpdate
}
